package com.viu.technology.dao.role;

import com.viu.technology.mapper.RoleMapper;
import com.viu.technology.po.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class RoleDaoImpl implements RoleDao {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public Role insertRole(Role role) {
        if (roleMapper.insert(role)>0) {
            return role;
        }
        return null;
    }

}
